package com.jdrx.ocp.beans.dto.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: Huangxg
 * @Date: 2018/11/21 9:40
 */
@ApiModel(value = "角色资源DTO" , description = "角色资源分配DTO")
public class RoleResourceDTO {

    /**
     * 角色ID
     */
    @NotNull
    @ApiModelProperty(value = "角色ID" , required = true)
    private Integer roleId;
    /**
     * 资源ID集合
     */
    @NotNull
    @ApiModelProperty(value = "资源ID集合" , required = true)
    private List<Integer> roleResource;

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public List<Integer> getRoleResource() {
        return roleResource;
    }

    public void setRoleResource(List<Integer> roleResource) {
        this.roleResource = roleResource;
    }
}
